<template>
	<div class="mine-container">
		<div class="mine-list">
			<div class="mine-list-item-head" bindtap="checkAuthorize">
				<text>头像</text>
				<div class="flex">
					<image v-if="haveAvatar==true" :src="avatar" class="mg-R20" />
					<div class="mine-list-item-head-placeholder" v-if="haveAvatar==false">点击获取头像信息</div>
					<text class="iconfont icon-arrow mine-list-item-head-icon mg-R20"></text>
				</div>
				<button class="mine-getUserInfo-button" open-type="getUserInfo" bindgetuserinfo="getUserInfo"></button>
			</div>
			<div class="mine-list-item">
				<text>昵称</text>
				<text class="contact">{{nickname}}</text>
			</div>
		</div>
		<div class="mine-list">
			<div class="mine-list-item" v-if="company">
				<text>所在企业</text>
				<text class="contact">{{company}}</text>
			</div>
			<div class="mine-list-item" v-if="mobile">
				<text>手机号码</text>
				<text class="contact">{{mobile}}</text>
			</div>
			<!-- <div class="mine-list-item" wx:if="{{gender}}">
                        <text>性别</text>
                        <text class="contact">{{gender}}</text>
                </div>
                <div class="mine-list-item" wx:if="{{birthday}}">
                        <text>生日</text>
                        <text class="contact">{{birthday}}</text>
                </div>
                <div class="mine-list-item" wx:if="{{children}}">
                        <text>有无子女</text>
                        <text class="contact">{{children}}</text>
                </div> -->
		</div>
		<!-- <div class="mine-list">
                <div class="mine-list-item" bindtap="toSetPassword" data-index="payPassword">
                        <text>支付密码设置</text>
                        <text class="iconfont icon-arrow mine-list-arrow"></text>
                </div>
        </div> -->
		<!-- <div class="mine-list">
                <div class="mine-list-item" bindtap="clearnStore">
                        <text>清除缓存</text>
                        <text class="iconfont icon-arrow mine-list-arrow"></text>
                </div>
                <div class="mine-list-item">
                        <text>商城评价</text>
                        <text class="iconfont icon-arrow mine-list-arrow"></text>
                </div>
        </div> -->
		<div class="mine-list">
			<button class="mine-list-button" @click="loginOut">切换账号</button>
		</div>
	</div>
</template>
<script>
	export default {
		name: '',
		data() {
			return {
				avatar: "",
				haveAvatar: false,
				nickname: "",
				company: "",
				mobile: "",
				gender: false,
				birthday: false,
				children: false
			}
		},
		created() { // 在实例创建完成后被立即调用
		},
		methods: {

		},
		components: {},
	}
</script>

<style scoped>
	.mine-container {
		flex: 1;
		background: rgba(248, 248, 248, 1);
	}

	.mine-list {
		margin: 20px 20px;
		background: rgba(255, 255, 255, 1);
		border-radius: 16px;
		box-shadow: 10px 10px 5px #eeeeef;
	}

	.mine-list-item {
		height: 82px;
		position: relative;
		font-size: 28px;
		font-family: PingFangSC;
		font-weight: 400;
		color: rgba(26, 26, 30, 1);
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 27px;
	}

	.contact {
		opacity: 0.5;
		font-weight: 400;
	}

	.mine-list-item-head {
		height: 126px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 27px;
		font-size: 28px;
		font-family: PingFangSC;
		color: rgba(26, 26, 30, 1);
		position: relative;
	}

	.mine-list-item-head-placeholder {
		color: #b4b4b4;
	}

	.mine-list-item-head image {
		width: 90px;
		height: 90px;
		border-radius: 50%;
		overflow: hidden;
		display: block;
		border: 2px solid #fff;
		box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
	}

	.mine-list-item-head-icon {
		width: 14px;
		height: 30px;
		right: 36px;
		top: 25px;
		color: #b4b4b4;
		opacity: 0.5;
	}

	.mine-getUserInfo-button {
		padding: 0;
		width: 100%;
		height: 82px;
		opacity: 0;
		font-size: 28px;
		line-height: 82px;
		font-family: PingFangSC;
		font-weight: bold;
		color: rgba(26, 26, 30, 1);
		border: solid 1px black;
		position: absolute;
		right: 0;
	}

	.mine-list-icon {
		font-size: 40px;
		padding: 0 27px;
	}

	.mine-list-arrow {
		width: 14px;
		height: 30px;
		position: absolute;
		right: 36px;
		top: 25px;
		color: rgba(26, 26, 30, 1);
		opacity: 0.5;
	}

	.mine-list-button {
		padding: 0;
		width: 100%;
		height: 82px;
		background: rgba(255, 255, 255, 1);
		font-size: 28px;
		line-height: 82px;
		font-family: PingFangSC;
		font-weight: bold;
		color: rgba(26, 26, 30, 1);
	}
</style>
